<template>
	<view class="layout">
		<view class="navbar" :style="listStyle">
			<view class="shang" :style="{height:statusBarHeight()+'px'}"></view>
			
			<view class="xia" :style="{height:xiaHeight()+'px'}">
				<view class="title">
					{{title}}
				</view>
				<view class="phone">
					{{phone}}
				</view>
				<!-- <view class="search">
					<uni-icons type="search" size="20" color="green"></uni-icons>
					<view class="text">
						搜索
					</view>
				</view> -->
			</view>
			
		</view>
		
		<view class="fill" :style="{height:fillHeight()+'px'}">
			
		</view>
	</view>
</template>

<script setup>
import { ref } from 'vue';
import {statusBarHeight,xiaHeight,fillHeight} from '@/utils/system.js';
defineProps({
	title:{
		type:String,
		default:'标题'
	},
	phone:{
		type:String,
		default:''
	},
	listStyle:{
		type:String,
		default:''
	}

})


</script>

<style lang='scss' scoped>
.layout{
	.navbar{
		position: fixed;
		top:0;
		left:0;
		z-index:10;
		width: 100%;
		background:
			linear-gradient(to bottom,rgba(0,0,0,0),#fff 400rpx),
			linear-gradient(to right,#1ec0ff 20%,#a3daff)
			
		;
		.xia{
			
			padding: 0 30rpx;
			display: flex;
			align-items: center;
			.title{
				font-size: 50rpx;
				font-weight: 700;
				color:#000;
				
			}
			.title{
				
			}
			.phone{
				font-size: 32rpx;
				font-weight: 550;
				padding-left: 10rpx;
				margin-top: 18rpx;
				white-space: nowrap;
				overflow: hidden;
				text-overflow: ellipsis;
				width:300rpx;
			}
			.search{
				width:220rpx;
				height: 50rpx;
				margin-left:30rpx;
				background: rgba(255, 255, 255, 0.4);
				display: flex;
				padding-left: 30rpx;
				align-items: center;
				border-radius: 60rpx;
				color:#999;
				font-size:28rpx;
				.text{
					padding-left:10rpx;
				}
			}
		}
		
	}
}
	
</style>